package com.IC.domain.po;


import com.IC.base.util.ExcelImport;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("actual_population")
public class ActualPopulationPo implements Serializable {

    //主键id
    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //姓名
    @ExcelProperty("name")
    @ExcelImport("name")
    private String name;

    //性别 0男 1女
    @ExcelProperty("sex")
    @ExcelImport("sex")
    private Integer sex;

    //电话号码
    @ExcelProperty("phone")
    @ExcelImport("phone")
    private String phone;

    //人员类型 0户籍人员 1外来人员 2境外人员
    @ExcelProperty("type")
    @ExcelImport("type")
    private Integer type;

    //人脸照片
    @ExcelProperty("pic")
    @ExcelImport("pic")
    private String pic;

    //小区地址
    @ExcelProperty("plotId")
    @ExcelImport("plotId")
    private Integer plotId;

    //最后出现的时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("lastTime")
    @ExcelImport("lastTime")
    private Date lastTime;

    //证件号
    @ExcelProperty("idNumber")
    @ExcelImport("idNumber")
    private String idNumber;

    //迁移状态 0 已迁入 1已迁出
    @ExcelProperty("transfer")
    @ExcelImport("transfer")
    private Integer transfer;

    //出生日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("birthday")
    @ExcelImport("birthday")
    private Date birthday;

    //民族id
    @ExcelProperty("nationId")
    @ExcelImport("nationId")
    private Integer nationId;

    //人口标签id
    //户籍地址
    @ExcelProperty("domicileAddress")
    @ExcelImport("domicileAddress")
    private String domicileAddress;

    //栋
    @ExcelProperty("building")
    @ExcelImport("building")
    private Long building;

    //单元
    @ExcelProperty("apartment")
    @ExcelImport("apartment")
    private Long apartment;

    //房屋id
    @ExcelProperty("tenementId")
    @ExcelImport("tenementId")
    private Long tenementId;

    @ExcelProperty("bigPic")
    @ExcelImport("bigPic")
    private String bigPic;

//    private String rowTips;

}
